home *** CD-ROM | disk | FTP | other *** search
- Path: news.apana.org.au!calvados!edwall
- From: edwall@calvados.apana.org.au (Karl Edwall)
- Newsgroups: comp.lang.c++
- Subject: Re: Simple DLL Problem
- Message-ID: <g3wBkD3w165w@calvados.apana.org.au>
- Date: Fri, 19 Jan 96 21:57:27 +1100
- References: <30f27530.80885051@news.internet-eireann.ie>
- Organization: APANA, Hobart, Tasmania: 002 34 8530
-
- mkelly@vocean.ie writes:
-
- > #ifdef _cplusplus
- > extern "C" {
- > #endif
- >
- > int FAR PASCAL _export mySum(int a, int b);
- >
- > #ifdef _cplusplus
- > }
- > #endif
- >
- >
- > int FAR PASCAL _export mySum(int a,int b)
- > {
-
- The function has to declared as a extern "C" function in the actual function
- also I think, don't take my word for it though, I did do the same mistake
- myself but I just don't have the code here to confirm how I did it.
-
- --
- edwall@calvados.apana.org.au (Karl Edwall)
- APANA, Hobart, Tasmania: 002 34 8530
-